using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.AspNetCore.Mvc;
using Volo.Abp.Modularity;
using AuthService.Application;
using Microsoft.AspNetCore.Mvc;

namespace AuthService;

[DependsOn(
    typeof(AuthServiceApplicationModule),
    typeof(AbpAspNetCoreMvcModule)
)]
public class AuthServiceHttpApiModule : AbpModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        // 配置MVC
        context.Services.AddMvc(options =>
        {
            options.Filters.Add(new ProducesAttribute("application/json"));
        });
    }
}
